package manage.commons.utils;

/**
 * 1=true 0=false
 * 
 * @since 2012-07-28
 * @author dongji
 * 
 */
public class NumberAndBoolean {

	public static int booleanToNumber(boolean boo) {
		return boo ? 1 : 0;
	}

	public static boolean numberToBoolean(int num) {
		return num > 0 ? true : false;
	}
}
